{defun name="CatsList_experience_spheres" list=$experiences_spheres[$experiences_qnty].pages}
<ul class="no-list">
{foreach from=$list item=node}
<li>
	{if $node.childs!='0'}
		<a href="#" onclick="recurseExperienceSpheres('{$node.id}','spheres_{$experiences_qnty}_{$node.id}',{$jsCatsList_experience_spheres[$experiences_qnty]});show('spheres_{$experiences_qnty}_{$node.id}');return false;">+</a>
		<input type="checkbox" name="item[experiences][{$experiences_qnty}][spheres][{$node.id}]" value="{$node.id}" id="sphere_{$experiences_qnty}_{$node.id}"{if $node.selected} checked="true"{/if} /> <label for="sphere_{$experiences_qnty}_{$node.id}">{$node.title}</label>
		<div id="spheres_{$experiences_qnty}_{$node.id}" {if $node.inside_selected ne true}style="display:none;"{/if}>{fun name="CatsList_experience_spheres" list=$node.sub}</div>
	{else}
		<input type="checkbox" name="item[experiences][{$experiences_qnty}][spheres][{$node.id}]" value="{$node.id}" id="sphere_{$experiences_qnty}_{$node.id}"{if $node.selected} checked="true"{/if} /> <label for="sphere_{$experiences_qnty}_{$node.id}">{$node.title}</label>
	{/if}
</li>
{/foreach}
</ul>
{/defun}